/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.cesupa.sessionbean;

import br.cesupa.localinterface.AreaDAO;
import br.cesupa.sgc.entity.Area;
import java.util.List;
import javax.ejb.Stateless;

/**
 *
 * @author koiti
 */
@Stateless
public class AreaSUDI extends GenericSUDI<Area> implements AreaDAO {

    public Area getByNome(String nome) {
        return (Area) super.executeNamedQueryObject("Area.findByNome", "nome", nome);
    }

    public List<Area> getLikeNome(String nome) {
        return super.executeNamedQueryList("Area.findLikeNome", "nome", "%" + nome + "%");
    }
}
